package com.lagou.dao.impl;

import com.lagou.dao.ArticleDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.jdbc.support.rowset.SqlRowSet;
import org.springframework.stereotype.Repository;

@Repository("articleDao")
public class ArticleDaoImpl implements ArticleDao {

    @Autowired
    private JdbcTemplate jdbcTemplate;

    public void updateArticleInfo(int id) {
        String sql = "update course set teacher_name = ? where id = ?";

        jdbcTemplate.update(sql, "王老师", 1);

    }
}
